package com.rentong.wx.sys.controller;

import com.rentong.common.R;
import com.rentong.wx.sys.domain.SysConfPicEntity;
import com.rentong.wx.sys.service.SysConfPicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysConfPicController {

    @Autowired
    private SysConfPicService sysConfPicService;

    /**
     * 232、查询各类轮播图
     */
    @GetMapping("/sysConfPic/getConfPicByConfPicType")
    public R getConfPicByConfPicType(SysConfPicEntity sysConfPicEntity){
        return R.success(sysConfPicService.getConfPicByConfPicType(sysConfPicEntity));
    }

    /**
     * 233、查询首页4张图
     */
    @GetMapping("/sysConfPic/getConfPicMain")
    public R getConfPicMain(){
        return R.success(sysConfPicService.getConfPicMain());
    }




}
